import request from '@/utils/request'
import { getHost, getHeaderType } from '@/utils/host'

export function upload(data) {
  return request({
    method: 'post',
    url: '/fastDfs/uploadUrl',
    baseURL: getHost(),
    data: data,
    headers: getHeaderType()
  })
}

export function delFileUrl(data) {
  return request({
    method: 'post',
    url: '/fastDfs/delFileUrl',
    baseURL: getHost(),
    params: { urls: data },
    headers: getHeaderType()
  })
}
